const mongoose = require('./connection')

const orderSchema = new mongoose.Schema({
    orderno: String,
    time: {
        type: Date,
        default: +new Date
    },
    mode: String,
    menuname: String,
    code: String,
    totalprice: String,
    status: String,
    userid: String
})

const orderModel = mongoose.model('order', orderSchema)

module.exports = orderModel